import { ThreeGeometry } from "../three/geometry";
import { ThreeMaterial } from "../three/material";
import { ThreeMesh } from "../three/mesh";

export class CapsuleMesh {
    private threeGeometry = new ThreeGeometry();
    private threeMesh = new ThreeMesh();
    private threeMaterial = new ThreeMaterial();

    create() {
        const geometry = this.threeGeometry.capsule(0.35, 0.7, 4, 8);
        const material = this.threeMaterial.meshBasic({
            color: 0x00ff00,
            wireframe: true
        });
        const mesh = this.threeMesh.create(geometry, material);

        return mesh;
    }

    
}